import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/refund_details_entity.dart';

RefundDetailsEntity $RefundDetailsEntityFromJson(Map<String, dynamic> json) {
	final RefundDetailsEntity refundDetailsEntity = RefundDetailsEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		refundDetailsEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		refundDetailsEntity.code = code;
	}
	final RefundDetailsData? data = jsonConvert.convert<RefundDetailsData>(json['data']);
	if (data != null) {
		refundDetailsEntity.data = data;
	}
	return refundDetailsEntity;
}

Map<String, dynamic> $RefundDetailsEntityToJson(RefundDetailsEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

RefundDetailsData $RefundDetailsDataFromJson(Map<String, dynamic> json) {
	final RefundDetailsData refundDetailsData = RefundDetailsData();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		refundDetailsData.id = id;
	}
	final int? orderId = jsonConvert.convert<int>(json['orderId']);
	if (orderId != null) {
		refundDetailsData.orderId = orderId;
	}
	final String? refundNo = jsonConvert.convert<String>(json['refundNo']);
	if (refundNo != null) {
		refundDetailsData.refundNo = refundNo;
	}
	final double? refundAmount = jsonConvert.convert<double>(json['refundAmount']);
	if (refundAmount != null) {
		refundDetailsData.refundAmount = refundAmount;
	}
	final int? refundType = jsonConvert.convert<int>(json['refundType']);
	if (refundType != null) {
		refundDetailsData.refundType = refundType;
	}
	final int? refundStatus = jsonConvert.convert<int>(json['refundStatus']);
	if (refundStatus != null) {
		refundDetailsData.refundStatus = refundStatus;
	}
	final dynamic? rejectReason = jsonConvert.convert<dynamic>(json['rejectReason']);
	if (rejectReason != null) {
		refundDetailsData.rejectReason = rejectReason;
	}
	final String? refundCount = jsonConvert.convert<String>(json['refundCount']);
	if (refundCount != null) {
		refundDetailsData.refundCount = refundCount;
	}
	final String? refundReason = jsonConvert.convert<String>(json['refundReason']);
	if (refundReason != null) {
		refundDetailsData.refundReason = refundReason;
	}
	final dynamic? refundTime = jsonConvert.convert<dynamic>(json['refundTime']);
	if (refundTime != null) {
		refundDetailsData.refundTime = refundTime;
	}
	final dynamic? logisticsNo = jsonConvert.convert<dynamic>(json['logisticsNo']);
	if (logisticsNo != null) {
		refundDetailsData.logisticsNo = logisticsNo;
	}
	final String? handelTime = jsonConvert.convert<String>(json['handelTime']);
	if (handelTime != null) {
		refundDetailsData.handelTime = handelTime;
	}
	final String? applyTime = jsonConvert.convert<String>(json['applyTime']);
	if (applyTime != null) {
		refundDetailsData.applyTime = applyTime;
	}
	final int? orderStatus = jsonConvert.convert<int>(json['orderStatus']);
	if (orderStatus != null) {
		refundDetailsData.orderStatus = orderStatus;
	}
	final dynamic? refundUrls = jsonConvert.convert<dynamic>(json['refundUrls']);
	if (refundUrls != null) {
		refundDetailsData.refundUrls = refundUrls;
	}
	final dynamic? orderShipperCode = jsonConvert.convert<dynamic>(json['orderShipperCode']);
	if (orderShipperCode != null) {
		refundDetailsData.orderShipperCode = orderShipperCode;
	}
	final dynamic? refundUrl = jsonConvert.convert<dynamic>(json['refundUrl']);
	if (refundUrl != null) {
		refundDetailsData.refundUrl = refundUrl;
	}
	return refundDetailsData;
}

Map<String, dynamic> $RefundDetailsDataToJson(RefundDetailsData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['orderId'] = entity.orderId;
	data['refundNo'] = entity.refundNo;
	data['refundAmount'] = entity.refundAmount;
	data['refundType'] = entity.refundType;
	data['refundStatus'] = entity.refundStatus;
	data['rejectReason'] = entity.rejectReason;
	data['refundCount'] = entity.refundCount;
	data['refundReason'] = entity.refundReason;
	data['refundTime'] = entity.refundTime;
	data['logisticsNo'] = entity.logisticsNo;
	data['handelTime'] = entity.handelTime;
	data['applyTime'] = entity.applyTime;
	data['orderStatus'] = entity.orderStatus;
	data['refundUrls'] = entity.refundUrls;
	data['orderShipperCode'] = entity.orderShipperCode;
	data['refundUrl'] = entity.refundUrl;
	return data;
}